﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HiLand.Utility.Data;

namespace DotNET4Study
{
    class StringSubStudy
    {
        public static void Execute()
        {
            string value1 = "||abc";
            string value2 = "ab||c";
            string value3 = "abc||";
            string value4 = "abc";

            Console.WriteLine("开始处理"+ value1);
            Console.WriteLine(StringHelper.GetBeforeSeperatorString(value1,"||"));
            Console.WriteLine(StringHelper.GetAfterSeperatorString(value1, "||"));

            Console.WriteLine("开始处理" + value2);
            Console.WriteLine(StringHelper.GetBeforeSeperatorString(value2, "||"));
            Console.WriteLine(StringHelper.GetAfterSeperatorString(value2, "||"));

            Console.WriteLine("开始处理" + value3);
            Console.WriteLine(StringHelper.GetBeforeSeperatorString(value3, "||"));
            Console.WriteLine(StringHelper.GetAfterSeperatorString(value3, "||"));

            Console.WriteLine("开始处理" + value4);
            Console.WriteLine(StringHelper.GetBeforeSeperatorString(value4, "||"));
            Console.WriteLine(StringHelper.GetAfterSeperatorString(value4, "||"));
        }
    }
}
